package com.imooc.service;

import com.imooc.pojo.Users;
import com.imooc.pojo.bo.UserBO;

public interface UserService {

    /**
     * 判断用户名是否存在
     * */
    boolean queryUsernameIsExist(String username) throws Exception;

    /**
     * 创建用户
     * */
    Users createUser(UserBO userBO) throws Exception;

    /**
     * 用户登录
     * 检索用户名和密码是否匹配，用于登录
     * */
    Users queryUserForLogin(String username, String password) throws Exception;

}
